package no.sogl.sportsadmin;

import java.util.Date;

public class Member {
    private String firstName;
    private String lastName;
    private String club;
    private String gender;
    private int relayNo = 1;
    private Date birthDate;

    public String getFirstName() {
        return firstName;
    }

    public Member setFirstName(String firstName) {
        this.firstName = firstName;
        return this;
    }

    public String getLastName() {
        return lastName;
    }

    public Member setLastName(String lastName) {
        this.lastName = lastName;
        return this;
    }

    public String getClub() {
        return club;
    }

    public Member setClub(String club) {
        this.club = club;
        return this;
    }

    public String getGender() {
        return gender;
    }

    public Member setGender(String gender) {
        this.gender = gender;
        return this;
    }

    public int getRelayNo() {
        return relayNo;
    }

    public Member setRelayNo(Integer relayNo) {
        if ( relayNo == null ) return this;
        this.relayNo = relayNo;
        return this;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public Member setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
        return this;
    }

    @Override
    public String toString() {
        return "Member [firstName=" + firstName + ", lastName=" + lastName + ", club=" + club + ", gender=" + gender
                + ", relayNo=" + relayNo + ", birthDate=" + birthDate + "]";
    }
}
